Skip to content

Add hover effects to quizzes list category cards#945

Open
syeedazoyatabassum wants to merge 2 commits intoalphaonelabs:mainfrom
syeedazoyatabassum:fix/quizzes-list-card-hover-effects
Open

Add hover effects to quizzes list category cards#945
syeedazoyatabassum wants to merge 2 commits intoalphaonelabs:mainfrom
syeedazoyatabassum:fix/quizzes-list-card-hover-effects

Conversation

@syeedazoyatabassum
Copy link

@syeedazoyatabassum syeedazoyatabassum commented Feb 23, 2026

Related issues

Fixes #943

  • Did you run the pre-commit? (If not, your PR will most likely not pass — please ensure it passes pre-commit)
  • Did you test the change? (Ensure you didn’t just prompt the AI and blindly commit — test the code and confirm it works)
  • Added screenshots to the PR description (if applicable)

Summary

Added hover interaction effects to the three quiz category cards (My Quizzes, Shared With Me, Public Quizzes) on the quiz list page. Each card now smoothly lifts up and gains a deeper shadow when hovered, providing clear visual feedback that improves the user experience.

Before & After

Before After
Hover behavior No visual change Card lifts up and shadow deepens
Transition None Smooth 300ms animation
Shadow shadow-lg (static) shadow-lgshadow-2xl on hover
Position Static Moves up 4px (-translate-y-1) on hover

Screenshots

The attached video shows the behavior after the fix. To see how it was before the fix, please refer to the recording in the issue #943

fix01.mov

Summary by CodeRabbit

  • Style
    • Improved visual feedback on quiz cards across My Quizzes, Shared With Me, and Public Quizzes with smooth hover transitions, enhanced shadows, and subtle lift animations for a more responsive, polished user interaction.

@github-actions github-actions bot added the files-changed: 1 PR changes 1 file label Feb 23, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 23, 2026

Walkthrough

Adds Tailwind CSS transition and hover classes to the three quiz category cards (My Quizzes, Shared With Me, Public Quizzes) in the quiz list template; changes are purely visual (hover lift and shadow) with no data or behavior modifications.

Changes

Cohort / File(s) Summary
Quiz List Card Styling
web/templates/web/quiz/quiz_list.html
Added Tailwind classes transition-all, duration-300, hover:shadow-2xl, and motion-safe:hover:-translate-y-1 to the three quiz category card container divs to enable smooth lift and shadow on hover.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related issues

Suggested labels

files-changed: 1

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding hover effects to quiz list category cards, which matches the changeset's core objective.
Linked Issues check ✅ Passed The PR fully addresses issue #943 by implementing all required hover effects: upward lift, shadow intensification, and smooth 300ms transitions with motion-safe accessibility consideration.
Out of Scope Changes check ✅ Passed All changes are scoped to the quiz list template file and directly address hover interaction improvements specified in issue #943; no unrelated modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@web/templates/web/quiz/quiz_list.html`:
- Line 27: Replace the overly broad Tailwind utility "transition-all" with the
narrower "transition" on the quiz card elements so only transform and box-shadow
are animated; specifically update the divs that contain the class string
"bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden transition-all
duration-300 hover:shadow-2xl hover:-translate-y-1" (and the analogous card
class occurrences) to use "transition" instead of "transition-all" (also apply
the same change to the other two card instances currently using transition-all).
- Line 27: The hover translate animation uses plain "hover:-translate-y-1" which
ignores users' prefers-reduced-motion; update the Tailwind utility to use the
motion-safe variant ("motion-safe:hover:-translate-y-1") wherever it appears
(the card class string at the line shown and the other occurrences noted around
lines 75 and 116) so the translate is only applied when motion is allowed while
leaving the hover shadow ("hover:shadow-2xl") unchanged.

ℹ️ Review info

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 20cc175 and eda2e41.

📒 Files selected for processing (1)
  • web/templates/web/quiz/quiz_list.html

@syeedazoyatabassum
Copy link
Author

Fixed - replaced transition-all with transition and added motion-safe: prefix to hover:-translate-y-1 on all three cards for better performance and accessibility.

coderabbitai[bot]
coderabbitai bot previously approved these changes Mar 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

👀 Peer Review Required

Hi @syeedazoyatabassum! This pull request does not yet have a peer review.

Before this PR can be merged, please request a review from one of your peers:

  • Go to the PR page and click "Reviewers" on the right sidebar.
  • Select a team member or contributor to review your changes.
  • Once they approve, this reminder will be automatically removed.

Thank you for contributing! 🎉

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@web/templates/web/quiz/quiz_list.html`:
- Line 27: The card container currently only applies hover-only lift/shadow
styles via classes on the div (e.g., the class starting with "bg-white
dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden transition duration-300
hover:shadow-2xl motion-safe:hover:-translate-y-1"); update these containers to
include focus-within variants so keyboard focus inside the card yields the same
visual cue (add "focus-within:shadow-2xl" and
"motion-safe:focus-within:-translate-y-1" or equivalent focus-within classes
alongside the existing hover classes), and make the same change for the other
card instances mentioned (the similar divs at the other occurrences). Ensure the
interactive children (links/buttons) remain tabbable so focus-within can
trigger.

ℹ️ Review info

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between eda2e41 and ae4c9f1.

📒 Files selected for processing (1)
  • web/templates/web/quiz/quiz_list.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

files-changed: 1 PR changes 1 file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quizzes list page cards lack hover interaction

1 participant